package com.weizicheng.controller;

import com.weizicheng.config.PersonProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class AppController {

    @Autowired
    private PersonProperties personProperties;

    @RequestMapping("/app")
    public String user(){
        if (personProperties == null){
            return "失败";
        }
        System.out.println(personProperties);
        return "成功";

    }
}
